<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>innerHTML和innerText的使用220313</title>
</head>
<body>
    <div id="geyao"><p>geyao</p><p>fangfang</p></div>
    <script>
       var geyao= document.getElementById("geyao")
       console.log(geyao,"geyao")
       var innerHtml=geyao.innerHTML
       var innerText=geyao.innerText
       console.log(innerHtml,"innerHtml")
       console.log(innerText,"innerText")
    </script>




</body>
</html>